/**********************************************************************/
/*   ____  ____                                                       */
/*  /   /\/   /                                                       */
/* /___/  \  /                                                        */
/* \   \   \/                                                       */
/*  \   \        Copyright (c) 2003-2009 Xilinx, Inc.                */
/*  /   /          All Right Reserved.                                 */
/* /---/   /\                                                         */
/* \   \  /  \                                                      */
/*  \___\/\___\                                                    */
/***********************************************************************/

/* This file is designed for use with ISim build 0xc3576ebc */

#define XSI_HIDE_SYMBOL_SPEC true
#include "xsi.h"
#include <memory.h>
#ifdef __GNUC__
#include <stdlib.h>
#else
#include <malloc.h>
#define alloca _alloca
#endif
static const char *ng0 = "D:/my_xlinx/xilinx/last_trial/Convector.v";
static int ng1[] = {0, 0};
static unsigned int ng2[] = {0U, 0U};
static int ng3[] = {1, 0};
static unsigned int ng4[] = {45U, 0U};
static unsigned int ng5[] = {1U, 0U};
static unsigned int ng6[] = {48U, 0U};
static unsigned int ng7[] = {2U, 0U};
static unsigned int ng8[] = {3U, 0U};
static unsigned int ng9[] = {4U, 0U};



static void Always_35_0(char *t0)
{
    char t19[8];
    char t36[8];
    char *t1;
    char *t2;
    char *t3;
    char *t4;
    char *t5;
    unsigned int t6;
    unsigned int t7;
    unsigned int t8;
    unsigned int t9;
    unsigned int t10;
    char *t11;
    char *t12;
    char *t13;
    char *t14;
    int t15;
    char *t16;
    char *t17;
    char *t18;
    char *t20;
    char *t21;
    unsigned int t22;
    unsigned int t23;
    unsigned int t24;
    unsigned int t25;
    unsigned int t26;
    unsigned int t27;
    char *t28;
    unsigned int t29;
    unsigned int t30;
    unsigned int t31;
    unsigned int t32;
    unsigned int t33;
    char *t34;
    char *t35;

LAB0:    t1 = (t0 + 3488U);
    t2 = *((char **)t1);
    if (t2 == 0)
        goto LAB2;

LAB3:    goto *t2;

LAB2:    xsi_set_current_line(35, ng0);
    t2 = (t0 + 3808);
    *((int *)t2) = 1;
    t3 = (t0 + 3520);
    *((char **)t3) = t2;
    *((char **)t1) = &&LAB4;

LAB1:    return;
LAB4:    xsi_set_current_line(36, ng0);
    t4 = (t0 + 1208U);
    t5 = *((char **)t4);
    t4 = (t5 + 4);
    t6 = *((unsigned int *)t4);
    t7 = (~(t6));
    t8 = *((unsigned int *)t5);
    t9 = (t8 & t7);
    t10 = (t9 != 0);
    if (t10 > 0)
        goto LAB5;

LAB6:    xsi_set_current_line(43, ng0);
    t2 = (t0 + 1368U);
    t3 = *((char **)t2);
    t2 = (t3 + 4);
    t6 = *((unsigned int *)t2);
    t7 = (~(t6));
    t8 = *((unsigned int *)t3);
    t9 = (t8 & t7);
    t10 = (t9 != 0);
    if (t10 > 0)
        goto LAB9;

LAB10:    xsi_set_current_line(48, ng0);

LAB13:    xsi_set_current_line(49, ng0);
    t2 = (t0 + 2568);
    t3 = (t2 + 56U);
    t4 = *((char **)t3);
    t5 = (t4 + 4);
    t6 = *((unsigned int *)t5);
    t7 = (~(t6));
    t8 = *((unsigned int *)t4);
    t9 = (t8 & t7);
    t10 = (t9 != 0);
    if (t10 > 0)
        goto LAB14;

LAB15:    xsi_set_current_line(82, ng0);
    t2 = ((char*)((ng1)));
    t3 = (t0 + 1928);
    xsi_vlogvar_assign_value(t3, t2, 0, 0, 1);

LAB16:
LAB11:
LAB7:    goto LAB2;

LAB5:    xsi_set_current_line(37, ng0);

LAB8:    xsi_set_current_line(38, ng0);
    t11 = ((char*)((ng1)));
    t12 = (t0 + 1928);
    xsi_vlogvar_assign_value(t12, t11, 0, 0, 1);
    xsi_set_current_line(39, ng0);
    t2 = ((char*)((ng2)));
    t3 = (t0 + 2088);
    xsi_vlogvar_assign_value(t3, t2, 0, 0, 8);
    xsi_set_current_line(40, ng0);
    t2 = ((char*)((ng1)));
    t3 = (t0 + 2408);
    xsi_vlogvar_assign_value(t3, t2, 0, 0, 3);
    xsi_set_current_line(41, ng0);
    t2 = ((char*)((ng1)));
    t3 = (t0 + 2568);
    xsi_vlogvar_assign_value(t3, t2, 0, 0, 1);
    goto LAB7;

LAB9:    xsi_set_current_line(43, ng0);

LAB12:    xsi_set_current_line(44, ng0);
    t4 = (t0 + 1528U);
    t5 = *((char **)t4);
    t4 = (t0 + 2248);
    xsi_vlogvar_assign_value(t4, t5, 0, 0, 17);
    xsi_set_current_line(45, ng0);
    t2 = ((char*)((ng1)));
    t3 = (t0 + 2408);
    xsi_vlogvar_assign_value(t3, t2, 0, 0, 3);
    xsi_set_current_line(46, ng0);
    t2 = ((char*)((ng3)));
    t3 = (t0 + 2568);
    xsi_vlogvar_assign_value(t3, t2, 0, 0, 1);
    goto LAB11;

LAB14:    xsi_set_current_line(50, ng0);
    t11 = (t0 + 2408);
    t12 = (t11 + 56U);
    t13 = *((char **)t12);

LAB17:    t14 = ((char*)((ng2)));
    t15 = xsi_vlog_unsigned_case_compare(t13, 3, t14, 3);
    if (t15 == 1)
        goto LAB18;

LAB19:    t2 = ((char*)((ng5)));
    t15 = xsi_vlog_unsigned_case_compare(t13, 3, t2, 3);
    if (t15 == 1)
        goto LAB20;

LAB21:    t2 = ((char*)((ng7)));
    t15 = xsi_vlog_unsigned_case_compare(t13, 3, t2, 3);
    if (t15 == 1)
        goto LAB22;

LAB23:    t2 = ((char*)((ng8)));
    t15 = xsi_vlog_unsigned_case_compare(t13, 3, t2, 3);
    if (t15 == 1)
        goto LAB24;

LAB25:    t2 = ((char*)((ng9)));
    t15 = xsi_vlog_unsigned_case_compare(t13, 3, t2, 3);
    if (t15 == 1)
        goto LAB26;

LAB27:
LAB28:    goto LAB16;

LAB18:    xsi_set_current_line(51, ng0);
    t16 = (t0 + 2248);
    t17 = (t16 + 56U);
    t18 = *((char **)t17);
    memset(t19, 0, 8);
    t20 = (t19 + 4);
    t21 = (t18 + 4);
    t22 = *((unsigned int *)t18);
    t23 = (t22 >> 16);
    t24 = (t23 & 1);
    *((unsigned int *)t19) = t24;
    t25 = *((unsigned int *)t21);
    t26 = (t25 >> 16);
    t27 = (t26 & 1);
    *((unsigned int *)t20) = t27;
    t28 = (t19 + 4);
    t29 = *((unsigned int *)t28);
    t30 = (~(t29));
    t31 = *((unsigned int *)t19);
    t32 = (t31 & t30);
    t33 = (t32 != 0);
    if (t33 > 0)
        goto LAB29;

LAB30:    xsi_set_current_line(56, ng0);

LAB33:    xsi_set_current_line(57, ng0);
    t2 = ((char*)((ng1)));
    t3 = (t0 + 1928);
    xsi_vlogvar_assign_value(t3, t2, 0, 0, 1);
    xsi_set_current_line(58, ng0);
    t2 = (t0 + 2408);
    t3 = (t2 + 56U);
    t4 = *((char **)t3);
    t5 = ((char*)((ng3)));
    memset(t19, 0, 8);
    xsi_vlog_unsigned_add(t19, 32, t4, 3, t5, 32);
    t11 = (t0 + 2408);
    xsi_vlogvar_assign_value(t11, t19, 0, 0, 3);

LAB31:    goto LAB28;

LAB20:    xsi_set_current_line(60, ng0);

LAB34:    xsi_set_current_line(61, ng0);
    t3 = ((char*)((ng6)));
    t4 = (t0 + 2248);
    t5 = (t4 + 56U);
    t11 = *((char **)t5);
    memset(t19, 0, 8);
    t12 = (t19 + 4);
    t14 = (t11 + 4);
    t6 = *((unsigned int *)t11);
    t7 = (t6 >> 0);
    *((unsigned int *)t19) = t7;
    t8 = *((unsigned int *)t14);
    t9 = (t8 >> 0);
    *((unsigned int *)t12) = t9;
    t10 = *((unsigned int *)t19);
    *((unsigned int *)t19) = (t10 & 15U);
    t22 = *((unsigned int *)t12);
    *((unsigned int *)t12) = (t22 & 15U);
    memset(t36, 0, 8);
    xsi_vlog_unsigned_add(t36, 8, t3, 8, t19, 8);
    t16 = (t0 + 2088);
    xsi_vlogvar_assign_value(t16, t36, 0, 0, 8);
    xsi_set_current_line(62, ng0);
    t2 = ((char*)((ng5)));
    t3 = (t0 + 1928);
    xsi_vlogvar_assign_value(t3, t2, 0, 0, 1);
    xsi_set_current_line(63, ng0);
    t2 = (t0 + 2408);
    t3 = (t2 + 56U);
    t4 = *((char **)t3);
    t5 = ((char*)((ng3)));
    memset(t19, 0, 8);
    xsi_vlog_unsigned_add(t19, 32, t4, 3, t5, 32);
    t11 = (t0 + 2408);
    xsi_vlogvar_assign_value(t11, t19, 0, 0, 3);
    goto LAB28;

LAB22:    xsi_set_current_line(65, ng0);

LAB35:    xsi_set_current_line(66, ng0);
    t3 = ((char*)((ng6)));
    t4 = (t0 + 2248);
    t5 = (t4 + 56U);
    t11 = *((char **)t5);
    memset(t19, 0, 8);
    t12 = (t19 + 4);
    t14 = (t11 + 4);
    t6 = *((unsigned int *)t11);
    t7 = (t6 >> 4);
    *((unsigned int *)t19) = t7;
    t8 = *((unsigned int *)t14);
    t9 = (t8 >> 4);
    *((unsigned int *)t12) = t9;
    t10 = *((unsigned int *)t19);
    *((unsigned int *)t19) = (t10 & 15U);
    t22 = *((unsigned int *)t12);
    *((unsigned int *)t12) = (t22 & 15U);
    memset(t36, 0, 8);
    xsi_vlog_unsigned_add(t36, 8, t3, 8, t19, 8);
    t16 = (t0 + 2088);
    xsi_vlogvar_assign_value(t16, t36, 0, 0, 8);
    xsi_set_current_line(67, ng0);
    t2 = ((char*)((ng5)));
    t3 = (t0 + 1928);
    xsi_vlogvar_assign_value(t3, t2, 0, 0, 1);
    xsi_set_current_line(68, ng0);
    t2 = (t0 + 2408);
    t3 = (t2 + 56U);
    t4 = *((char **)t3);
    t5 = ((char*)((ng3)));
    memset(t19, 0, 8);
    xsi_vlog_unsigned_add(t19, 32, t4, 3, t5, 32);
    t11 = (t0 + 2408);
    xsi_vlogvar_assign_value(t11, t19, 0, 0, 3);
    goto LAB28;

LAB24:    xsi_set_current_line(70, ng0);

LAB36:    xsi_set_current_line(71, ng0);
    t3 = ((char*)((ng6)));
    t4 = (t0 + 2248);
    t5 = (t4 + 56U);
    t11 = *((char **)t5);
    memset(t19, 0, 8);
    t12 = (t19 + 4);
    t14 = (t11 + 4);
    t6 = *((unsigned int *)t11);
    t7 = (t6 >> 8);
    *((unsigned int *)t19) = t7;
    t8 = *((unsigned int *)t14);
    t9 = (t8 >> 8);
    *((unsigned int *)t12) = t9;
    t10 = *((unsigned int *)t19);
    *((unsigned int *)t19) = (t10 & 15U);
    t22 = *((unsigned int *)t12);
    *((unsigned int *)t12) = (t22 & 15U);
    memset(t36, 0, 8);
    xsi_vlog_unsigned_add(t36, 8, t3, 8, t19, 8);
    t16 = (t0 + 2088);
    xsi_vlogvar_assign_value(t16, t36, 0, 0, 8);
    xsi_set_current_line(72, ng0);
    t2 = ((char*)((ng5)));
    t3 = (t0 + 1928);
    xsi_vlogvar_assign_value(t3, t2, 0, 0, 1);
    xsi_set_current_line(73, ng0);
    t2 = (t0 + 2408);
    t3 = (t2 + 56U);
    t4 = *((char **)t3);
    t5 = ((char*)((ng3)));
    memset(t19, 0, 8);
    xsi_vlog_unsigned_add(t19, 32, t4, 3, t5, 32);
    t11 = (t0 + 2408);
    xsi_vlogvar_assign_value(t11, t19, 0, 0, 3);
    goto LAB28;

LAB26:    xsi_set_current_line(75, ng0);

LAB37:    xsi_set_current_line(76, ng0);
    t3 = ((char*)((ng6)));
    t4 = (t0 + 2248);
    t5 = (t4 + 56U);
    t11 = *((char **)t5);
    memset(t19, 0, 8);
    t12 = (t19 + 4);
    t14 = (t11 + 4);
    t6 = *((unsigned int *)t11);
    t7 = (t6 >> 12);
    *((unsigned int *)t19) = t7;
    t8 = *((unsigned int *)t14);
    t9 = (t8 >> 12);
    *((unsigned int *)t12) = t9;
    t10 = *((unsigned int *)t19);
    *((unsigned int *)t19) = (t10 & 15U);
    t22 = *((unsigned int *)t12);
    *((unsigned int *)t12) = (t22 & 15U);
    memset(t36, 0, 8);
    xsi_vlog_unsigned_add(t36, 8, t3, 8, t19, 8);
    t16 = (t0 + 2088);
    xsi_vlogvar_assign_value(t16, t36, 0, 0, 8);
    xsi_set_current_line(77, ng0);
    t2 = ((char*)((ng5)));
    t3 = (t0 + 1928);
    xsi_vlogvar_assign_value(t3, t2, 0, 0, 1);
    xsi_set_current_line(78, ng0);
    t2 = ((char*)((ng1)));
    t3 = (t0 + 2408);
    xsi_vlogvar_assign_value(t3, t2, 0, 0, 3);
    xsi_set_current_line(79, ng0);
    t2 = ((char*)((ng1)));
    t3 = (t0 + 2568);
    xsi_vlogvar_assign_value(t3, t2, 0, 0, 1);
    goto LAB28;

LAB29:    xsi_set_current_line(51, ng0);

LAB32:    xsi_set_current_line(52, ng0);
    t34 = ((char*)((ng4)));
    t35 = (t0 + 2088);
    xsi_vlogvar_assign_value(t35, t34, 0, 0, 8);
    xsi_set_current_line(53, ng0);
    t2 = ((char*)((ng5)));
    t3 = (t0 + 1928);
    xsi_vlogvar_assign_value(t3, t2, 0, 0, 1);
    xsi_set_current_line(54, ng0);
    t2 = (t0 + 2408);
    t3 = (t2 + 56U);
    t4 = *((char **)t3);
    t5 = ((char*)((ng3)));
    memset(t19, 0, 8);
    xsi_vlog_unsigned_add(t19, 32, t4, 3, t5, 32);
    t11 = (t0 + 2408);
    xsi_vlogvar_assign_value(t11, t19, 0, 0, 3);
    goto LAB31;

}


extern void work_m_00000000001512172713_0861070798_init()
{
	static char *pe[] = {(void *)Always_35_0};
	xsi_register_didat("work_m_00000000001512172713_0861070798", "isim/TB_isim_beh.exe.sim/work/m_00000000001512172713_0861070798.didat");
	xsi_register_executes(pe);
}
